//
//  UIViewController+ASTabBarItem.m
//
//  Created by apple on 14-9-17.
//  Copyright (c) 2014年. All rights reserved.
//

#import "UIViewController+ASTabBarItem.h"
#import "ASTabBarItem.h"
#import <objc/runtime.h>

static char itemKey;

@implementation UIViewController (ASTabBarItem)

- (void)rcs_setTabBarItem:(ASTabBarItem *)rcs_tabBarItem
{
    objc_setAssociatedObject(self, &itemKey, rcs_tabBarItem, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
//    vLOG(@"%@",itemKey);
}

- (ASTabBarItem *)rcs_tabBarItem
{
    return objc_getAssociatedObject(self, &itemKey);
}

@end
